package cn.tedu.property2022.mapper;

import cn.tedu.property2022.pojo.entity.Announcements;
import cn.tedu.property2022.pojo.vo.AnnouncementsLsitVO;
import cn.tedu.property2022.pojo.vo.AnnouncementsVO;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface AnnounucementsMapper {
    /**
     * 添加新的公告
     * @param announcements
     * @return
     */
    int insertAnn(Announcements announcements);

    /**
     * 查询所有公告
     * @return
     */
    List<AnnouncementsLsitVO> AnnonucementsList();
    /**
     * 根据公告标题查询公告
     * @param title
     * @return
     */
    AnnouncementsVO getAnnonucements(String title);

    /**
     * 根据id查询公告详情
     * @param id
     * @return
     */
    List<AnnouncementsVO> getMessage(Long id);
    /**
     * 查询信息
     * @param title
     * @return
     */
    List<AnnouncementsVO> AnnonucementsVOList(String title);

}
